package lab01;

public class Test12 {
    public static void main(String[] args) {
        int i=1;
        for(;i<1001;i++){
            int individual = 0;
            int ten = 0;
            int hundred = 0;
            int thousand = 0;
            individual = i % 1000 % 100 % 10;
            ten = i% 1000 % 100 / 10;
            hundred = i % 1000 / 100;
            thousand = i/1000;
            if(i==individual*individual*individual+ten*ten*ten
                    +hundred*hundred*hundred+thousand*thousand*thousand){
                System.out.print(i+"\t");
            }
        }
    }
}
